/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements.  See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


/*************************************************************************
 *\author: starlove
 *************************************************************************/
#ifndef __CC_PYTHON_IMPORT_O_AUDIO__
#define __CC_PYTHON_IMPORT_O_AUDIO__

#include <cocos2d.h>
#include <SimpleAudioEngine.h>
#include "python_object_nodeobjects.h"

NS_CCPY_BEGIN
	class CPySimpleAudioEngine : public CPyClassBase
	{
	PYCLASS_DEF_INTERFACE(CPySimpleAudioEngine)
	public:
		CPySimpleAudioEngine();
		CocosDenshion::SimpleAudioEngine *getCCObject(){ return CocosDenshion::SimpleAudioEngine::sharedEngine(); };
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, preloadBackgroundMusic);
		PYCLASS_METHOD_KW_DEF(CPySimpleAudioEngine, playBackgroundMusic);
		PYCLASS_METHOD_KW_DEF(CPySimpleAudioEngine, stopBackgroundMusic);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, pauseBackgroundMusic);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, resumeBackgroundMusic);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, rewindBackgroundMusic);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, willPlayBackgroundMusic);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, isBackgroundMusicPlaying);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, getBackgroundMusicVolume);		
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, setBackgroundMusicVolume);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, getEffectsVolume);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, setEffectsVolume);
		PYCLASS_METHOD_KW_DEF(CPySimpleAudioEngine, playEffect);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, pauseEffect);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, pauseAllEffects);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, resumeEffect);		
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, resumeAllEffects);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, stopEffect);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, stopAllEffects);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, preloadEffect);
		PYCLASS_METHOD_DEF(CPySimpleAudioEngine, unloadEffect);
	};

NS_CCPY_END

#endif